import { Rect } from "cc";

export class Item {
    /**索引 */
    readonly index: number;
    /**位置和大小 */
    readonly rect: Rect = new Rect();

    constructor(index: number, rect?: Rect) {
        this.index = index;
        if (rect) {
            this.rect.set(rect);
        }
    }
}


